package vcp.enums;

import vcp.enums.utility.EnumReverser;
import vcp.enums.utility.EnumReverser.IEnumReverser;
/**
 * 
 * @author VCP team
 *<p> floor enum class</p>
 */
public enum Floor implements IEnumReverser
{
	FLOOR_1 ( "1", 1 ),
	FLOOR_2 ( "2", 2 ),
	FLOOR_3 ( "3", 3 );

	private int floorNumber;
	/** 
	 * gets floor number
	 * @return floor number
	 */
	public int getFloorNumber ()
	{
		return this.floorNumber;
	}

	private String floorName;
	/** constructor**/
	private Floor ( String floorName, int floorNumber )
	{
		this.floorName = floorName;
		this.floorNumber = floorNumber;
	}

	@Override
	public String toString ()
	{
		return this.floorName;
	}
	/** enum converter**/
	public static Floor convert ( String eKey )
	{
		return EnumReverser.convert(Floor.class, eKey);
	}
}
